//
//  WSMBaseTableView.m
//  WinesMall
//
//  Created by Isaac on 17/9/14.
//  Copyright © 2017年 Isaac. All rights reserved.
//

#import "WSMBaseTableView.h"

@implementation WSMBaseTableView

- (UIImageView *)backImageView {
    if (!_backImageView) {
        
        _backImageView = [[UIImageView alloc] initWithFrame:CGRectMake((VW(self)-107)/2.0, (VH(self)-85)/2.0, 107, 85)];
        _backImageView.backgroundColor = kBackGColor;
        _backImageView.hidden = YES;
    }
    return _backImageView;
}


- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style {
    if (self == [super initWithFrame:frame style:style]) {
//        self.tableFooterView = [[UIView alloc] init];
        UIView *backV = [[UIView alloc] initWithFrame:CGRectMake(0, 0, VW(self), VH(self))];
        [backV addSubview:self.backImageView];
//        backV.hidden = YES;
        self.backgroundView = backV;;
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
